package com.yiwyn;

import com.yiwyn.utils.FunUtils;
import com.yiwyn.utils.WrapUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) throws Exception {

        // FunUtils funUtils = new FunUtils();
        //
        // funUtils.setFunc(Integer::parseInt);
        // funUtils.run("1");
        //
        // // list 调整
        // List<String> list = new ArrayList<>();
        // list.add("1");
        // System.out.println(list);
        //
        //
        // List<String> collect = list.stream().filter(p -> !p.equals("1")).collect(Collectors.toList());
        // System.out.println(collect);


        String wrap = WrapUtil.wrap(new Callable<String>() {
            @Override
            public String call() throws Exception {
                if ("a" == "a") {
                    int a = 1/0;
                    return "测试a==a";
                }
                return "a!=a";
            }
        });


        System.out.println(wrap);

    }

}